#include <func.h>

int main(int argc,char *argv[])
{
    pid_t iret=fork();
    if(iret<0)
    {
        printf("error happened");
    }else if(0==iret)
    {
        printf("The pid of child is %d\n",getpid());
        while(1);
    }else
    {
        printf("The pid of parent is %d\n",getpid());
        while(1);
    }

    return 0;
}

